@model HomePortal.Models.News

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>News</legend>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">MiniContent</div>
    <div class="display-field">@Model.MiniContent</div>

    <div class="display-label">Author</div>
    <div class="display-field">@Model.Author</div>

    <div class="display-label">PublishDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.PublishDate)</div>

    <div class="display-label">MainContent</div>
    <div class="display-field">@Model.MainContent</div>

    <div class="display-label">Comments</div>
    <div class="display-field">@(Model.Comments == null ? "None" : Model.Comments.Count.ToString())</div>

    <div class="display-label">Visible</div>
    <div class="display-field">@Model.Visible</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


